﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PUCIT.eFCS.Business;

namespace PUCIT.eFCS.App_MasterPages
{
    public partial class AdminMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                BusinessClass eFCS = new BusinessClass();
                string name = eFCS.GetUsernameWindows((int)Session["userId"]);
                Session["username"] = name;
                username.InnerHtml = "<b>Welcome: " + name.ToUpper() + "</b>";
            }
            catch(Exception ) { }
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            Session.Clear();
            Response.Redirect("Login.aspx");
        }
    }
}